SET(execName Gstappsrc_test)
CMAKE_MINIMUM_REQUIRED(VERSION 2.4)
PROJECT(${execName})

if(COMMAND cmake_policy)
	cmake_policy(SET CMP0003 OLD)
	cmake_policy(SET CMP0015 OLD)
endif(COMMAND cmake_policy)

SET(EXECUTABLE_OUTPUT_PATH ".")

find_package(OpenCV REQUIRED)

include_directories(${OPENCV_INCLUDE_DIRS})
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
#INCLUDE for c/C++ include
include_directories(${PROJECT_INCLUDE_DIR})
include_directories(
    /usr/include/gstreamer-1.0
    /usr/lib/${CMAKE_SYSTEM_PROCESSOR}-linux-gnu/gstreamer-1.0/include
    /usr/include/glib-2.0
    /usr/include/libxml2 /usr/lib/${CMAKE_SYSTEM_PROCESSOR}-linux-gnu/glib-2.0/include
)


add_executable(gst_app_test StreamServer.cpp gstUtility.cpp)
target_link_libraries(gst_app_test gstreamer-1.0 gstapp-1.0 ${OpenCV_LIBS} glib-2.0  gobject-2.0 ${gobject_LIBS})
